package com.example.meiyu.application;

import android.content.Intent;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.util.Log;
import android.view.View;
import android.widget.TextView;

/**
 * Created by meiyu on 2016/6/17.
 */
public class ThirdActivity extends AppCompatActivity {
    MyApp myApp;
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.third);
        SysApplication.getInstance().addActivity(this);
        myApp = (MyApp)getApplication();
    }
    public void click(View v){
        myApp.setLabel("");
        Intent intent=new Intent();
        intent.setClass(ThirdActivity.this,MainActivity.class);
        startActivity(intent);
        SysApplication.getInstance().exit();

    }
}
